<template>
  <div class="home">
<!--    <HelloWorld msg="首页"/>-->
    <!-- 海报图片 -->
    <div class="post-main" style="transform: translate3d(0px, 0px, 0px); ">
      <section class="post-member" >
        <a href="#">
          <img src="../assets/head.png" alt>
        </a>
        <p class="show-bill-title" style="display: none;">海报标题</p>
      </section>
    </div>
    <!-- 个人登录 -->
    <div class="user-main" style="transform: translate3d(0px, 0px, 0px); ">
      <section class="user-member" >
<!--        <div style="float: left;display: block;width: 100%;text-align: left;margin-left: 4px;">用户卡</div>-->
        <div class="name" >
          <div class="name-item">用户姓名：</div>
          <div class="name-item2">{{userid}}</div>
        </div>
        <div class="id" >
          <p class="name-item" >用户电话：</p>
          <div class="name-item4">{{username}}</div>
<!--          <div class="name-item2" style="display: none;">海报标题</div>-->
        </div>
        <div class="button">
          <el-button type="success" v-if="!$parent.loginStatus" style="width: 100px;margin-right: 1px;" @click="login">请登录/注册</el-button>
          <el-button type="warning" v-else style="margin-right: 1px;" @click="logout">退出</el-button>
        </div>
      </section>
    </div>
    <!-- 在线咨询，网报维修 -->
    <section class="header">
      <a @click="toInfo()">
        <div class="consult">
          <img class="bgtupian" src="../assets/fankui1.png" alt>
          <p class="Linktitle">讲师信息</p>
          <p class="Linkdetails">
            <span>详情</span>
          </p>
          <div class="Link">
            <p>去了解</p>
            <p>></p>
          </div>
        </div>
      </a>
      <a  @click="toBook()">
        <div class="repairs">
          <img class="bgtupian" src="../assets/fankui1.png" alt>
          <p class="Linktitle">预约授课</p>
          <p class="Linkdetails">
            <span>详情</span>
          </p>
          <div class="Link2">
            <p>去预约</p>
            <p>></p>
          </div>
        </div>
      </a>
    </section>
    <!-- 历史列表   -->
    <div style="margin: 5vw; border-radius: 5px;" >
      <!-- 预约历史   -->
      <div class="el-icon-date"
           style="text-align: left;margin-left: 1vw;margin-top: 10px;float: left;">
        预约历史信息
      </div>
      <el-button class="el-icon-refresh" style="float: right" size="mini" @click="refresh">刷新</el-button>
      <el-table
          :data="tableData"
          style="width: 100%;border-radius: 5px;"
          height="250"
          stripe
          border>
        <el-table-column
            label="预约授课时间"
            align="center"
            width="130">
          <template slot-scope="scope" style="padding: 0;">
            <!--          <i class="el-icon-time"></i>-->
            <span style="margin-left: 0px">{{ scope.row.day }}</span>
          </template>
        </el-table-column>
        <el-table-column
            label="讲师"
            align="center"
            width="105">
          <template slot-scope="scope">
            <el-popover trigger="hover" placement="top">
<!--              <p>姓名: {{ scope.row.name }}</p>-->
              <p>讲师电话: {{ scope.row.pnumber }}</p>
              <p>授课人群: {{ scope.row.serverName }}</p>
              <p v-if="null != scope.row.delayTime">延迟授课时间：{{scope.row.delayTime}}</p>
              <div slot="reference" class="name-wrapper">
                <el-tag size="medium" style="padding: 0px 5px 0px 5px">{{ scope.row.doctorName }}</el-tag>
              </div>
            </el-popover>
          </template>
        </el-table-column>
        <!--<el-table-column
            label="老师电话"
            align="center"
            prop="phone"
            width="108">
        </el-table-column>-->
        <el-table-column align="center" label="操作\状态"  >
          <template slot-scope="scope">

            <el-button v-if="1 == scope.row.status"
                style="padding-left: 2px;padding-right: 2px;width: 55px; margin-left: 10px"
                size="mini"
                type="primary"  plain
                @click="deleteApply(scope.row.id)">取消申请</el-button>
            <el-button v-if="2 == scope.row.status"
                style="padding-left: 1px;padding-right: 2px;width: 65px;"
                size="mini"
                type="success" plain
                @click="handleEdit(scope.$index, scope.row)">待填申请表</el-button>
            <el-button v-if="3 == scope.row.status"
                style="padding-left: 1px;padding-right: 2px;width: 65px;margin-left: 10px"
                size="mini"
                type="info" plain disabled
                >待老师确认</el-button>
            <el-button v-if="4 == scope.row.status"
                style="padding-left: 1px;padding-right: 2px;width: 90px;margin-left: 10px"
                size="mini"
                type="success" disabled
                >双方已确认授课</el-button>
            <el-button v-if="5 == scope.row.status"
                style="padding-left: 1px;padding-right: 2px;width: 55px;margin-left: 10px"
                size="mini"
                type="success" plain disabled
                >已完结</el-button>
            <!-- <el-button
                 size="mini"
                 type="danger"
                 @click="handleDelete(scope.$index, scope.row)">删除</el-button>-->
          </template>
        </el-table-column>
      </el-table>

    </div>
    <!-- 底部留白   -->
    <div style="height: 100px" v-loading.fullscreen.lock="fullscreenLoading"></div>
    <!--    dialog-->
    <el-dialog
        title="填写授课详细信息"
        :visible.sync="dialogVisible"
        width="95%"

        :before-close="handleClose">
      <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm">
        <el-form-item label="申请人" prop="name" style="text-align: left;width: 100%">
          <el-input v-model="ruleForm.name" style="width: 100px;" disabled></el-input>
        </el-form-item>
        <el-form-item label="联系电话" prop="phone" style="text-align: left;width: 100%">
          <el-input v-model="ruleForm.phone" style="width: 200px;"></el-input>
        </el-form-item>
        <el-form-item label="单位和职务" prop="unit" style="text-align: left;width: 100%">
          <el-input v-model="ruleForm.unit" style="width: 200px;" placeholder="单位/职务"></el-input>
        </el-form-item>
        <!--<el-form-item label="活动区域" prop="region"  style="text-align: left;width: 100%">
          <el-select v-model="ruleForm.region" placeholder="请选择活动区域">
            <el-option label="区域一" value="shanghai"></el-option>
            <el-option label="区域二" value="beijing"></el-option>
          </el-select>--><!--
        <div class="block">
          <span class="demonstration">选择授课类别</span>
-->
        <!--
          <el-cascader
              v-model="value"
              :options="options"
              :props="props"
              @change="handleChange"
          ></el-cascader>>-->
            <!--
        </div>-->
        <div style="background-color: #ffffff;border-top-left-radius: 5px;border-top-right-radius: 5px;border-bottom: 5px;">
          <el-form-item label="授课类别"  :inline-message="true" prop="checkedLabId" style="width: 100%;margin-bottom: 25px">
          <template>
            <el-select v-model="ruleForm.checkedLabId" placeholder="Select">
              <el-option
                  v-for="item in treeForm[0].children"
                  :key="item.id"
                  :label="item.name"
                  :value="item.id"
              >
              </el-option>
            </el-select>
          </template>
          </el-form-item>
        <!--<el-form-item label="授课类别"  :inline-message="true" prop="checkedLab" style="width: 100%;margin-bottom: 0">
        <div style="-webkit-line-clamp: 2;width: 200px;
        overflow: hidden; line-height: 25px;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-box-orient: vertical;
                border-style:solid;border-width:1px;
                background-color: aqua;
                border-color: #ffffff;border-radius: 5px;"
        >{{ruleForm.checkedLab}}</div>
        </el-form-item>
        <template>
          <el-tree
              :data="treeForm"
              :props="props"
              :default-expanded-keys="openNode"
              check-strictly
              node-key="id"
              ref="treeForm"
              accordion
              @check-change="handleNodeClick"
              @node-click="checked"
              style="float: left;min-width: 80px;
                margin-right: 400px;
                background-color: #84ffff;
                border-style:solid;
                border-color: #80ffff;border-radius: 0"
          >
            &lt;!&ndash;              :default-expanded-keys="[1]"&ndash;&gt;
            &lt;!&ndash;              :default-checked-keys="[10]"&ndash;&gt;
          </el-tree>
        </template>-->
        </div>
        <el-form-item label="听课人数" prop="peopleNum" style="text-align: left;width: 100%">
          <el-input v-model="ruleForm.peopleNum" style="width: 100px;" placeholder="人数"></el-input>
        </el-form-item>
        <!--<el-form-item label="活动时间" required>
          <el-col :span="11">
            <el-form-item prop="date1">
              <el-date-picker type="date" placeholder="选择日期" v-model="ruleForm.date1" style="width: 100%;"></el-date-picker>
            </el-form-item>
          </el-col>
          <el-col class="line" :span="2">-</el-col>
          <el-col :span="11">
            <el-form-item prop="date2">
              <el-time-picker placeholder="选择时间" v-model="ruleForm.date2" style="width: 100%;"></el-time-picker>
            </el-form-item>
          </el-col>
        </el-form-item>
        <el-form-item label="即时配送" prop="delivery">
          <el-switch v-model="ruleForm.delivery"></el-switch>
        </el-form-item>-->
        <div style="background-color: #84ffff;border-radius: 5px;">
        <el-form-item label="活动现场设备情况：" prop="type" label-width="160px" style="text-align: left;margin-bottom: 0">
          若活动现场有相应设备则勾选
        </el-form-item>
        <el-checkbox-group v-model="ruleForm.devices" style="
          text-align: left;width: 90%;margin-left: 5%;
          margin-bottom: 20px;
                border-style:solid;border-width:1px;
                border-color: #80ffff;border-radius: 5px;">
          <el-checkbox v-for="item in devicesArr" :label="item.id" :name="item.name">{{item.name}}</el-checkbox>
   <!--       <el-checkbox label="" name="ruleForm.devices">投影仪器</el-checkbox>
          <el-checkbox label="" name="ruleForm.devices">笔记本电脑接口</el-checkbox>
          <el-checkbox label="" name="ruleForm.devices">电子条幅显示屏</el-checkbox>
          <el-checkbox label="" name="ruleForm.devices">无线话筒</el-checkbox>
          <el-checkbox label="" name="ruleForm.devices">有线话筒</el-checkbox>-->
         </el-checkbox-group>
        </div>
        <el-form-item label="室内场地" prop="place" style="text-align: left">
          <el-radio-group v-model="ruleForm.place" >
            <el-radio :label="true">会议室</el-radio>
            <el-radio :label="false">多共功能厅</el-radio>
          </el-radio-group>
        </el-form-item>
        <el-form-item label="室内场地可容纳人数:" prop="peopleNum" label-width="180px" style="text-align: left;width: 100%">
          <el-input v-model="ruleForm.areaPeopleNum" style="width: 80px;" placeholder="人数"></el-input>
        </el-form-item>
        <el-form-item label="用户开展活动场地类型："  style="text-align: left" label-width="200px">
          <el-radio-group v-model="ruleForm.place2" >
            <el-radio :label="0">室内</el-radio>
            <el-radio :label="1">室外</el-radio>
          </el-radio-group>
        </el-form-item>
        <el-form-item v-if="ruleForm.place2==1" label="用户开展活动的室外面积:(单位/m²)" label-width="260px" prop="area" style="text-align: left;width: 100%">
          <el-input v-model="ruleForm.area" style="width: 70px;" placeholder="面积"></el-input>
        </el-form-item>
        <el-form-item label="其他设施" prop="otherDevice" style="text-align: left">
          <el-input type="textarea" v-model="ruleForm.otherDevice" style="width: 90%" placeholder="没有请填写无"></el-input>
        </el-form-item>
        <el-form-item style="margin-right: 0%" label-width="0">
          <el-button @click="resetForm('ruleForm')">重置表格</el-button>
          <el-button @click="dialogVisible = false">取 消</el-button>
          <el-button type="primary" @click="submitForm('ruleForm')">立即申请</el-button>
        </el-form-item>
      </el-form>
<!--      <span slot="footer" class="dialog-footer">-->
<!--    <el-button type="primary" @click="postTable">提 交</el-button>-->
<!--  </span>-->
    </el-dialog>
  </div >

</template>

<script>
// @ is an alias to /src
import HelloWorld from '@/components/HelloWorld.vue'

export default {
  name: 'home',
  components: {
    HelloWorld
  },
  data(){
    return {
      fullscreenLoading: true,
      username: "（请先登录）",
      userid: "***********",
      logoStatus: true,
      tableData: [/*{
        day: '2021-05-02 下午',
        doctorName: '测试用例',
        number: "17671005416",
        address: '上海市普陀区金沙江路 1518 弄',
        status: 2
      }*/],
      dialogVisible: false,
      selectedRow: null,
      ruleForm: {
        orderid: null,
        name: '',
        phone: '',
        unit: '',
        checkedLab: '',
        checkedLabId: '',
        peopleNum: null,
        region: '',
        date1: '',
        date2: '',
        delivery: false,
        type: [],
        resource: '',
        desc: '',
        devices: [],
        place: null,
        place2: null,
        areaPeopleNum: null,
        area: null,
        otherDevice: null,

      },
      labelPosition: 'top',
      rules: {
        name: [
          { required: true, message: '请输入申请人', trigger: 'blur' },
          { min: 3, max: 18, message: '长度在 3 到 18 个字符', trigger: 'blur' }
        ],
        phone: [
          { required: true, message: '请输入联系人电话', trigger: 'blur' },
          { min: 11, max: 11, message: '长度在 11 个字符', trigger: 'blur' }
        ],
        unit: [
          { required: true, message: '请输入单位和职务', trigger: 'blur' },
          { min: 10, max: 50, message: '长度在 10 到 50个字符', trigger: 'blur' }
        ],
        checkedLabId: [
          { required: true, message: '请选择授课类别', trigger: 'blur' },
          // { min: 1, max: 3, message: '请输入合适的参与人数', trigger: 'blur' }
        ],
        peopleNum: [
          { required: true, message: '请输参与听课人数', trigger: 'blur' },
          { min: 1, max: 3, message: '请输入合适的参与人数', trigger: 'blur' }
        ],
        areaPeopleNum: [
          { required: true, message: '请输入场地可容纳人数', trigger: 'blur' },
          { min: 1, max: 3, message: '请输入合适的人数', trigger: 'blur' }
        ],
        region: [
          { required: true, message: '请选择活动区域', trigger: 'change' }
        ],
        date1: [
          { type: 'date', required: true, message: '请选择日期', trigger: 'change' }
        ],
        date2: [
          { type: 'date', required: true, message: '请选择时间', trigger: 'change' }
        ],/*
        type: [
          { type: 'array', required: true, message: '请至少选择一个活动性质', trigger: 'change' }
        ],*/
        otherDevice: [
          { required: true, message: '请填其他设备，没有请填写无', trigger: 'blur' }
        ],
        place: [
          { required: true, message: '请填写室内场地类型', trigger: 'blur' }
        ]
      },
      value: [],
      props: { expandTrigger: 'hover',children: 'children', label: 'name' },
      treeForm:[
        {
          id: '0',
          label: '指南',
          disabled: true,
          children: [
            {id: '2', label: '指南指南指南指南指南指南指指南指fdghd指dfghfgd南指南南指南指南指南指南指南'},
            {id: '3', label: '指南'},
          ],
        },
        { id: '0',
          label: '指南',
          disabled: true,
          children: [
            { id: '2', label: '指南指南指南指南指南指南指fdghd指dfghfgd南指南指南指南指南' },
            { id: '3', label: '指南' },
          ]
        }
      ],
      checkedLab: '请选择一下授课类型',
      devicesArr: [],
      placeArr: null,
      openNode: [],//默认展开树节点
    }
  },
  async created() {
    this.fullscreenLoading = true;
    setTimeout(() => {
      this.fullscreenLoading = false;
      // this.message.error('登录失败,请重试!')
    }, 100);
    setTimeout(() => {
      // this.userid = this.$parent.username
      // this.username = this.$parent.userid
      // this.message.error('登录失败,请重试!')
    }, 2000);
    this.username = window.sessionStorage.getItem('nickname');
    this.userid = window.sessionStorage.getItem('username'); //也就是电话号码
    this.password = window.sessionStorage.getItem('password')
    this.id = window.sessionStorage.getItem('id')
    this.ruleForm.name = this.username
    this.ruleForm.phone = this.userid
    this.logoStatus = !this.$parent.loginStatus;
    // this.username = window.sessionStorage.getItem('nickname');

    // console.log(this.id)
    if(null == this.username) {
      this.username= "(请先登录)";
      this.userid= "*** **** ****"
      return
    }
    const { data: res } = await this.$http.post('order/info/list2', {uid:this.id})
    // this.tableData.splice(0)
    for(var j = 0,len=res.data.length; j < len; j++) {
      var item = {}
      item = res.data[j]
      if(1 == res.data[j].time) item.day = item.day+' 上午'
      if(2 == res.data[j].time) item.day = item.day+' 下午'
      this.tableData.push(item)
      // console.log(res[j])
      // if(res[j].pId==0) {
        // item.id = res[j].id
        // item.date = '（'+(j+1)+'）' + res[j].title
        item
      // }
    }
    console.log(res)
  },
  methods:{
    refresh(){
      location.reload();
    },
    login(){
      this.$router.push('/login')
    },
    logout(){
      this.logoStatus = true;
      sessionStorage.removeItem("nickname");
      sessionStorage.removeItem("username");
      sessionStorage.removeItem("password");
      sessionStorage.removeItem("id");
      this.userid="(请先登录)"
      this.username= "***********";
      window.sessionStorage.setItem('nickname', this.username)
      // window.sessionStorage.setItem('id', this.userid)
      window.sessionStorage.setItem('username', this.userid)
      location.reload();
      this.$parent.loginStatus = false
    },
    toInfo(){
      this.$router.push('/info')
    },
    toBook(){
      if(2 == this.$parent.identity) {
        this.$message.error("工作人员账号无法预约")
        // this.$router.go(-1);
      }else {
        this.$router.push('/book')
      }
      // this.$router.push('/book')
    },
     deleteApply(rowId) {
      this.$confirm('此操作将永久删除该申请, 是否继续?', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      }).then(async() => {
        console.log(rowId)
        const { data: res } = await this.$http.post('order/info/remove',{ids:rowId})
        if(0 == res.code)
          this.$message({
            type: 'success',
            message: '删除成功!'
          });
        setTimeout(() => {
          location.reload();
          // this.message.error('登录失败,请重试!')
        }, 500);
      }).catch(() => {
        this.$message({
          type: 'info',
          message: '删除失败'
        });
      })
    },
    async handleEdit(index,row){
      this.openNode.splice(0)
      this.openNode.push(row.sid)
      console.log(row)
      this.selectedRow = row
      const { data: res } = await this.$http.get('table/table/treeData2')
      console.log(res)
      // console.log(res.data)
      this.treeForm.splice(0)
      this.devicesArr.splice(0)
      for(var j = 0,len=res.length; j < len; j++) {
        var item = res[j]
        if(0 == item.pId) item.disabled = true
        if(row.sid == item.id) this.treeForm.push(item)
        else if(7 == item.id) {
          this.devicesArr = [].concat(item.children)
          // this.devicesArr.push(item.children)
          console.log( this.devicesArr)
        }
        else if(7 == item.id) this.placeArr = item
      }
      console.log(this.treeForm)
      console.log(this.devicesArr)
      // console.log(this.placeArr)

      //请求表格@TODO

      console.log("23234")
      this.dialogVisible = true
    },
    handleClose(){
      this.dialogVisible = false
      this.$message({
        type: 'info',
        message: '已经取消'
      });
    },
    postTable(){
      this.dialogVisible = false
    },
    submitForm(formName) {
      console.log(this.ruleForm.devices)
      console.log(this.ruleForm.devices)
      console.log(this.selectedRow.day)
      console.log(this.ruleForm.place2)

      var set = this.ruleForm.devices.join(',')+','+this.ruleForm.checkedLabId
      console.log(set)
      this.$refs[formName].validate(async (valid) => {
        if (valid) {
          // alert('submit!');
          const { data: res } = await this.$http.post('set/set/add',{
            Name: this.selectedRow.customerName,
            number: this.selectedRow.number,
            set: set,
            date: this.selectedRow.day.slice(0,10),
            personNumber: this.ruleForm.peopleNum,
            job: this.ruleForm.unit,
            placeSet: this.ruleForm.areaPeopleNum,
            isOuter: this.ruleForm.place2,
            palceArea: this.ruleForm.area,
            otherEquipment: this.ruleForm.otherDevice,
            orderid: this.selectedRow.id,
            palce_type: this.ruleForm.place,//true会议室 false另一个
          })
          console.log(res)
          if(0 == res.code){
            const { data: res } = await this.$http.post('order/info/edit',{
              id: this.selectedRow.id,
              status: 3,
            })
            if(0 == res.code) alert("成功")
            location.reload()
            this.dialogVisible = false
          }
        } else {
          console.log('提交失败!!');
          return false;
        }
      });
    },
    resetForm(formName) {
      this.$refs[formName].resetFields();
    },
    handleNodeClick(data, checked, node) {
      if(checked == true) {
        this.checkedId = data.id;
        this.$refs.treeForm.setCheckedKeys([data.id]);
      } else {
        if (this.checkedId == data.id) {
          this.$refs.treeForm.setCheckedKeys([data.id]);
        }
      }
    },
    checked(data,node,row){
      console.log(node)
      if(true != node.disabled) {
        this.ruleForm.checkedLab = node.label
        this.ruleForm.checkedLabId = node.id

      }
    }
  }
}
</script>

<style>
button{
  padding: 0;
}
.home .el-divider{
  margin-top: 2px;
  margin: 0;
}
.post-main{
  width: 100%;
  height: 100%;
  display: flex;
}

.post-member{
  width: 100%;
  margin: 5%;
  justify-content: center;
  align-items: center;
}

a{
  width: 100%;
  height: 100%;
  display: block;
}

.post-member a img{
  width: 100%;
  height: 100%;
  border-radius: 1rem;
  box-shadow:0px 3px 3px 1px rgb(210, 241, 236);
  /* display: inline; */
}

.user-main{
  width: 100%;
  height: 130px;
  display: flex;
  overflow: hidden;
}
.user-member{
  position: relative;
  width: 90%;
  margin: 5%;
  margin-top: 0;
  margin-bottom: 0;
  height: 92%;
  /*flex-direction: column;*/
  /*justify-content: center;*/
  /*align-items: center;*/
  background-image: url("../assets/user-back.jpeg");
  background-size: 500px;
  background-position: -20px,-20px;
  border-radius: 1rem;
  box-shadow:0px 3px 3px 1px rgb(210, 241, 236);
  /*white-space: inherit;*/
  /*display: block;*/
}
.name{
  margin-top: 17px;
  margin-bottom: 5px;
  /*float: left;*/
  margin-left: 15px;
  font-weight: bolder;
  white-space: inherit;
  display:block;
  width: 330px;
  height: 20px;
  /*position: fixed;*/
  flex-direction: row;
}
.name-item{
  /*margin-left: 15px;*/
  font-weight: bolder;
  font-size: large;
  float: left;
  white-space: nowrap;
  display:inline;
  width: auto;
}
.name-item2{
  /*font-weight: bolder;*/
  margin-top: 3px;
  float: left;
  display:inline;
  width: 20%;
  white-space: nowrap;
  display:inline;
}
.name-item4{
  margin-top: 5px;
  float: left;
  /*display:inline;*/
  width: 20%;
  white-space: nowrap;
  display:inline;
}
.id{
  float: left;
  margin-left: 15px;
  font-weight: bolder;
  width: 330px;
  /*position: fixed;*/
  flex-direction: row;
}
.button{
  margin-top: 20px;
  margin-right: 6px;
  float: right;
  width: 100%;
  font-weight: bolder;
  display:block;
  width: 100px;
  height: 30px;
}
.button button{
  padding: 2px;
  width: 100px;
  height: 30px;
  border-radius: 1rem;
}

.header{
  display: flex;
  padding: 0rem 5vw 0rem 5vw;
  justify-content: space-between;
  overflow: hidden;
}

.header a{
  width: 44vw;
  height: 18.3vw;
  margin: 0;
  padding: 0;
  /* background-color: tomato; */
  /* background-image: url(../img/body/fankui.png);
  background-position: 0 0; */
}

.consult ,.repairs {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.consult .bgtupian,.repairs .bgtupian{
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  /* height: 20vw;
  width: 43vw; */
  position: absolute;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow:  1rem 2.8rem 1.5rem 2em rgba(30,104,234,0.1);
  /* filter: grayscale(0%); */
}
/*
.leftLink{
    position: absolute;
    width: 17vw;
    height: 7vw;
    bottom: 0;
    right: 0;
} */

.Linktitle,.Linkdetails{
  position: absolute;
  margin: 0;
  padding: 0;
}
.Linktitle{
  left: 1.5rem;
  top: 0.7rem;
  font-size: 1.1rem;
  color:white;
}
.Linkdetails{
  margin: 0;
  padding: 0;
  left: 1.5rem;
  bottom: 0.7rem;
  background-color: white;
  border-radius: 1rem;
  height: 0.7rem;
  width: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;

}
.Linkdetails span{
  margin: 0;
  padding: 0;
  padding-top: 0.2rem;
  color: rgb(98, 107, 236);
  line-height: 0.5rem;
  font-size: 0.5rem;
}

.Link,.Link2{
  display: flex;
  position: absolute;
  justify-content: center;
  align-items: center;
  width: 18vw;
  height: 7.5vw;
  bottom: 0;
  right: 0;
  background-image: url(../assets/rightLink.png) ;
  background-size: 100%;
  /* font-size: 2vmax; */
}
.Link2{
  background-image: url(../assets/leftLink.png) ;
}

.Link p,.Link2 p{
  margin: 0;
  padding: 0;
  /* display: flex; */
  line-height: 4px;
  font-size: 15px;
  color: white;
}
</style>
